if (Drupal.jsEnabled) {
	$(document).ready(function() {
		$('a.s-edit-link').click(function(){
			var seriesAdded = function(data){
				var result = Drupal.parseJson(data);
				if(result['status'])
					$('div.status-msg').fadeIn('def').html(result['status']);
				$('span.series_name').fadeIn('def').html(result['msg']);
			}
			$(this).ajaxSend(function(){
				$('div.productions-in-series-area').html('Start');
			});
			$.get(this.href, null, seriesAdded);
			
			return false;
		});
		
	});
}